package com.heer.gymnasium.module.card.beans;

/**
 * Created by yan
 * on 2018/2/23
 */

public class CardInfoResponseBean {
    private long stime;
    private long etime;
    private String num;
    private String[] address;
    private String[] place;
    private String[] phone;
    private String cat_id;
    private String ewm;
    private String type;
    private String show_name;

    public long getStime() {
        return stime;
    }

    public void setStime(long stime) {
        this.stime = stime;
    }

    public long getEtime() {
        return etime;
    }

    public void setEtime(long etime) {
        this.etime = etime;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String[] getAddress() {
        return address;
    }

    public void setAddress(String[] address) {
        this.address = address;
    }

    public String[] getPlace() {
        return place;
    }

    public void setPlace(String[] place) {
        this.place = place;
    }

    public String[] getPhone() {
        return phone;
    }

    public void setPhone(String[] phone) {
        this.phone = phone;
    }

    public String getCat_id() {
        return cat_id;
    }

    public void setCat_id(String cat_id) {
        this.cat_id = cat_id;
    }

    public String getEwm() {
        return ewm;
    }

    public void setEwm(String ewm) {
        this.ewm = ewm;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getShow_name() {
        return show_name;
    }

    public void setShow_name(String show_name) {
        this.show_name = show_name;
    }

    public static CardInfoResponseBean dataChange(StadiumCardResponsebean data) {
        CardInfoResponseBean bean = new CardInfoResponseBean();
        if (data != null) {
            bean.setEwm(data.getEwm());
            bean.setStime(data.getStime());
            bean.setEtime(data.getEtime());
            bean.setAddress(new String[]{data.getAddress()});
            bean.setPlace(new String[]{data.getPlace()});
            bean.setPhone(new String[]{data.getPhone()});
        }
        return bean;
    }
}
